package com.beiye.drivertransport.adapter;

import android.content.Context;
import android.widget.TextView;

import com.android.frame.adapter.CommonAdapter;
import com.android.frame.adapter.ViewHolder;
import com.beiye.drivertransport.R;
import com.beiye.drivertransport.bean.CarBean;

import java.util.List;

/**
 * Created by ky on 2019/1/17.
 */

public class PopWindowcarApt  extends CommonAdapter<CarBean.RowsBean> {
    private Context context;
    private List<CarBean.RowsBean> mList;
    public PopWindowcarApt(Context context, List<CarBean.RowsBean> mList, int itemLayoutId) {
        super(context, mList, itemLayoutId);
        this.context = context;
        this.mList = mList;
    }

    @Override
    public void convert(ViewHolder holder, CarBean.RowsBean item, int positon) {
        TextView tv_company =(TextView)holder.getView(R.id.tv_company);
        String plateNo = mList.get(positon).getPlateNo();
        tv_company.setText(plateNo);
    }


}